1 错误提示
在rsync使用过程中,配置相关SSH信息的时候得到的错误信息:
- Permissions are too open
- Bad owner or permissions
2 解决办法
在windows 中各种chmod 不好使。
把.ssh目录的权限设置为只用当前用户有完全控制的权限即可。
具体操作办法:
- .ssh目录右键==>属性==>安全
- 点击==>高级==> 禁用继承==>将以继承的权限 转换为此对象的显式权限
- .ssh目录右键==>属性==>安全
- 点击==>编辑
- 删除所有组或用户名下面的信息
- 点击==>添加==>高级==>立即查找==>选中需要使用的用户(一般为当前用户)==>双击或者选中后确定
- 将选中的用户勾选 完全控制 权限
- 一路确定 完工。
3 参考资料
- SSH Keys
- ssh “permissions are too open” error [closed]
- Windows CHMOD 600
- windows7 下 Bad owner or permissions 问题
- Bad owner or permissions on /Users/username/.ssh/config
- Why cannot chmod in cygwin on Windows 8 CP?
- cygwin在windows8.1上的chmod无法修改权限
- “Bad owner or permissions” error using Cygwin’s ssh.exe
最后更新: 2022年03月02日 03:32
原始链接: http://rawbin-.github.io/os-app/2016-03-05-windows-ssh-chmod/